<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        ul {
            list-style: none;
        }

        .box {
            height: 40px;
            width: 100%;
            background: #333;
            color: #b0b0b0;
        }

        .box .continer {
            width: 1200px;
            height: 40px;
            font-size: 12px;
            margin: auto;
        }

        .box .continer ul:first-child {
            float: left;
        }

        .box .continer ul:first-child li {
            float: left;
            line-height: 40px;
            padding: 0 5px;
        }

        .box .continer ul:last-child {
            float: right;
        }

        .box .continer ul:last-child li {
            float: left;
            line-height: 40px;
            padding: 0 5px;
        }

        .box .continer ul:last-child li.shopping {
            background: #424242;
            padding: 0 20px;
            margin-left: 10px;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="continer">
            <ul>
                <li>小米官网</li>
                <li>小米商城</li>
                <li>小米官网</li>
                <li>小米商城</li>
                <li>小米官网</li>
                <li>小米商城</li>
                <li>小米官网</li>
                <li>小米商城</li>
                <li>小米官网</li>
                <li>小米商城</li>
                <li>小米官网</li>
                <li>小米商城</li>
                <li>小米官网</li>
            </ul>
            <ul>
                <li>登录</li>
                <li>注册</li>
                <li>消息通知</li>
                <li class="shopping">购物车 (<span>0</span>)</li>
            </ul>
        </div>
    </div>
</body>

</html>